import { defineStore } from "pinia";

export const useStore = defineStore({
  id: "system",
  state: () => {
    return {
      isLogin: false,
      userLevel:0
    };
  },
  persist: {
    enabled: true,
    strategies: [
      {
        key: "system",
        storage: sessionStorage,
      },
    ],
  },
});
